package cn.com.kty.socket.io.service;

import cn.com.kty.socket.io.model.PushMessage;

/**
 * @Description: SocketIOService
 * @Author: zsc
 * @date 2021-05-11
 */
public interface SocketIOService {

    /**
     * 推送的事件
     */
    public static final String PUSH_EVENT = "push_event";

    /**
     * 启动服务
     * @throws Exception
     */
    void start() throws Exception;

    /**
     * 停止服务
     */
    void stop();

    /**
     * 推送信息
     * @param pushMessage
     */
    void pushMessageToUser(PushMessage pushMessage);
}
